﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JGSoft.U9CRTAPIEX.DTOs.RequestDTOs
{
    public class CreateAPPara
    {
        public string Token { get; set; }
        public DateTime AccrueDate { get; set; }
        public string AccrueSuppCode { get; set; }
        public string AccrueSuppSiteCode { get; set; }
        public string PaySuppCode { get; set; }
        public string PaySuppSiteCode { get; set; }
        public string ACCode { get; set; }
        public int BusinessType { get; set; }
        public string SrcOrgCode { get; set; }
        public string InvoiceNum { get; set; }
        public DateTime InvoiceDate { get; set; }
        public string DocumentTypeCode { get; set; }
        public string BizOrgCode { get; set; }
        public string SettleOrgCode { get; set; }
        public string Memo { get; set; }
        public string ProjectCode { get; set; }
        public List<Importapbilllinedto> ImportAPBillLineDTOs { get; set; }

        public class Importapbilllinedto
        {
            public int LineNum { get; set; }
            public DateTime Maturity { get; set; }
            public decimal PUAmount { get; set; }
            public decimal UnitPrice { get; set; }
            public decimal TaxPrice { get; set; }
            public decimal NoTaxMoney { get; set; }
            public decimal TaxMoney { get; set; }
            public decimal Money { get; set; }
            public bool IsIncludeTax { get; set; }
            public string SrcDocNo { get; set; }
            public string SrcLineNum { get; set; }
            public Iteminfo ItemInfo { get; set; }
            /// <summary>
            /// 来源业务类型
            /// </summary>
            public int SrcBusinessType { get; set; }
            public string TaxScheduleCode { get; set; }
            public string Memo { get; set; }
        }

        public class Iteminfo
        {
            public string ItemCode { get; set; }
            public string ItemName { get; set; }
        }

    }
}
